<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015-6-25
 * Time: 16:04
 */

namespace doumiaoduo\aliyun;


use yii\web\AssetBundle;

class ImageConfigAsset extends AssetBundle{

    public $sourcePath = '@doumiaoduo/aliyun/assets';

    public $css=[
        'imageconfig.css',
        'themes/icon.css',
        'themes/color.css',
        'themes/default/easyui.css',
        'webuploader/webuploader.css',
    ];
    public $depends = [
        'yii\web\JqueryAsset',
    ];

    public function init(){
        $js=YII_DEBUG?['webuploader/webuploader.js']:['webuploader/webuploader.min.js'];
        $this->js=$js;
    }

}